<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/info-reg.css" />
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
<title>移动办公自动化系统</title>
<script type="text/javascript">

	function showMan(){
		var val=window.showModalDialog("lyk/PersonResource/RewordManager/showName.jsp","","");
		var valarrays=val.split("/");
		var userid=valarrays[0];
		var username=valarrays[1];
		var deptname=valarrays[2];
		$("#userid").val(userid);
		$("#username").val(username);
		$("#deptname").val(deptname);
	}
</script>
</head>

<body>
<div class="title"><h2>增加奖惩信息</h2></div>
<div class="main">
<form name="form1" method="post" action="RewordManager.action?method=save">
	<input type="hidden" id="userid" name="userid" />
	<table>
    <tr><td>
	<p class="long-input ue-clear">
    	<label>员工姓名：</label></p></td>
        <td><p class="short-input ue-clear"><input type="text" id="username" name="username" readonly="readonly" />
         <button type="button" onclick="showMan();">选择</button>
    </p></td></tr>
    <tr><td>
	<p class="long-input ue-clear">
    	<label>所属部门：</label></p></td>
        <td><p class="short-input ue-clear"><input type="text" id="deptname" name="deptname" readonly="readonly" />
    </p></td></tr>
    <tr><td>
	<p class="long-input ue-clear">
    	<label>奖励类型：</label></p></td>
        <td><p class="short-input ue-clear"><select name="rptype">
        <option value="奖">奖</option>
        <option value="罚">罚</option>
        </select>
    </p></td></tr>
    <tr><td>
	<p class="long-input ue-clear">
    	<label>奖惩原因：</label></p></td>
        <td><p class="short-input ue-clear"><textarea name="cause"></textarea>
    </p></td></tr>
    <tr><td>
	<p class="long-input ue-clear">
    	<label>奖励时间：</label></p></td>
        <td><p class="short-input ue-clear"><input type="text" name="rtime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
        <span><em>*</em>请输入正确的时间格式</span>
    </p></td></tr>
    
	</table>
	    <div class="btn ue-clear">
	<a href="javascript:document.form1.submit();" class="confirm">确定</a>
    <a href="javascript:history.back();" class="clear">返回</a>
	</div>
</form>
</div>
</body>
</html>


